﻿using System.Web.Mvc;

namespace JaxDug.Areas.CodeCamp
{
    public class CodeCampAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "CodeCamp";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {

            context.MapRoute(
                "CodeCamp_default",
                "CodeCamp/{controller}/{action}/{id}",
                new {action = "Index", id = UrlParameter.Optional, controller = "Home"},
                namespaces: new[] {"JaxDug.Areas.CodeCamp.Controllers"}
                );
            
        }
    }
}
